package cn.tedu.micro.demo.order.feign;

import cn.tedu.micro.demo.common.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("micro-stock")
public interface StockFeignClient {
    @PostMapping("/stock/update")
    JsonResult updateStock(@RequestParam("productCode") String productCode,
                           @RequestParam("count") Integer count);
}
